package com.lt.shiropro.mapper;

import com.lt.shiropro.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
* @author root
* @description 针对表【t_role】的数据库操作Mapper
* @createDate 2023-12-04 16:36:38
* @Entity com.lt.shiropro.entity.Role
*/
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 通过用户名查询角色list
     * @param username username
     * @return
     */
    Set<String> queryUserRoles(@Param("username") String username);
}




